package com.king.hrmsdev.service;


import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.king.hrmsdev.mapper.ReportMapper;
import com.king.hrmsdev.pojo.ReportSalary;
import com.king.hrmsdev.pojo.employee_check;
import com.king.hrmsdev.pojo.employee_counts;
import com.king.hrmsdev.pojo.employee_salary;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @Auther:SnakeKing
 * @Date: 2019-09-22
 * @Description: com.king.hrmsdev.service
 * @version:1.0
 */
@Service
public class ReportService  {

    @Resource
    private ReportMapper reportMapper;


    //查询各部门总人数
    public List<employee_counts> depart_employee_count() {

        List<employee_counts> countsList = reportMapper.depart_employee_count();
        return countsList;
    }


    public List<employee_salary> depart_employee_salary() {
        List<employee_salary> salaryList = reportMapper.depart_employee_salary();
        System.out.println(salaryList.toString());
        return salaryList;
    }


    public List<ReportSalary> employee_salaryTop5() {
        List<ReportSalary> Top5List = reportMapper.employee_salaryTop5();
        System.out.println(Top5List.toString());
        return Top5List;
    }


    public List<employee_check> employee_echeck() {
        List<employee_check> checkList = reportMapper.employee_echeck();
        System.out.println(checkList.toString());
        return checkList;
    }


}
